package com.tedu.bill.demo1;

/**
 * Author：毕龙
 * Date: 2024/4/21 10:15
 */
public class Lamp {
    /*private YellowLight l1;
    private GreenLight l2;
    private WhiteLight l3*/;
    private Light light;

    public void setLight(Light light){
        this.light = light;
    }

    //把灯打开
    public void on(){
        light.shine();
    }
}
